<?php
	$id_desa=$_POST['id_desa'];
	$desa=$_POST['desa'];
	$kecamatan=$_POST['kecamatan'];

	if(isset($_POST['submit'])){
		$sql="update desa set desa='$desa', id_kecamatan='$kecamatan' where id_desa='$id_desa'";
		echo $sql;
	}
	
	$qry=mysql_query($sql);
	$url_sukses='utama.php?module=mod_desa';
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>